﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<div class="welcome" style="margin: 20px 15px 5px 0px;"><a href="${ctx.host}/profile">${currentPrincipal.name}&nbsp;&nbsp;</a>|&nbsp;&nbsp;<a href="${ctx.host}/j_spring_security_logout">退出</a></div>